#include "NMPreHeader.h"
#include "NMGlobalData.h"

static NMGlobalData* sGlobalData = NULL;

NMGlobalData* NMGlobalData::shared()
{
	FUNCTION_ENTER();

	if(sGlobalData == NULL)
		sGlobalData = new NMGlobalData;


	FUNCTION_LEAVE();

	return sGlobalData;
}

NMGlobalData::NMGlobalData()
:_currentEnemyEmitRate(5)
,_currentBulletType(bulletType_Normal)
,_gunPower(0)
,_gunFireRate(0.3f)
,_wallLifeCurrent(1000)
,_wallLifeMax(1000)
{
	FUNCTION_ENTER();

	_bulletCount[0] = -1;
	_bulletCount[1] = 1000;
	_bulletCount[2] = 1000;

	_gunLevel = gunLevel_Third;

	FUNCTION_LEAVE();
}

NMGlobalData::~NMGlobalData()
{
	FUNCTION_ENTER();

	FUNCTION_LEAVE();
}
